﻿@{
    ViewBag.Title = "Upload Video";
}

<h2>Upload A Video</h2>

<p>All videos must be 250MB or smaller.</p>
<p>Only .swf and .wmv video files can be uploaded.</p>
<br />
@using (Html.BeginForm("UploadVideo", "Video", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <label for="file">Filename:</label>
    <input type="file" name="file" id="file" />

    <input type="submit" value="Upload" />
    if (Roles.IsUserInRole("Admin"))
    {
        @Html.ActionLink("Cancel", "AdminListings")
    }
    else
    {
        @Html.ActionLink("Cancel", "Listings")
    }
}